package cn.rxmind.dlicense.core.base;

import cn.rxmind.dlicense.core.rule.ActiveTimeRule;
import cn.rxmind.dlicense.core.rule.IpRule;
import cn.rxmind.dlicense.core.rule.MacRule;
import cn.rxmind.dlicense.core.rule.SpringApplicationNameRule;
import com.google.common.collect.Sets;
import cn.rxmind.dlicense.core.constants.CheckRuleEnum;
import lombok.*;

import java.util.Map;
import java.util.Set;

/**
 * 证书生成参数
 *
 * @author renxin
 * @email renxinzhiliangzhi@163.com
 * @date 2021/4/12 2:04 下午
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class DLicenseContent {

    private ActiveTimeRule licenseActiveTimeRule;
    private IpRule ipRule;
    private MacRule macRule;
    private SpringApplicationNameRule springApplicationNameRule;
    private Set<CheckRuleEnum> activeRules = Sets.newHashSet(CheckRuleEnum.LICENSE_ACTIVE_TIME);

    private Map<String, Object> customContent;

}
